﻿using UnityEngine;
using System.Collections;

public class UIManager : IManager<UIManager> {

	private GameObject mUIRoot;

	public GameObject UIRoot
	{
		get{ return mUIRoot; }
	}

	public override bool Init(){

		if (!base.Init ()) {
			return false;
		}

		this.mUIRoot = GameObject.Find ("UIRoot");
		if (this.mUIRoot == null) {
			this.mUIRoot = new GameObject ("UIRoot");
			this.mUIRoot.AddComponent<Canvas> ();
		}

		this.MarkInitialized ();
		return true;
	}

	protected override void UpdateManger()
	{

	}
}
